]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dateMenu: Set label_actor for WorldClock button
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 3 Mar 2015 22:22:02 +0000 (23:22 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 4 Mar 2015 12:57:30 +0000 (13:57 +0100)
Ideally we would allow navigating into the button in the screen
reader case, so the configured clocks are read out properly.
However we can still do better than nothing short-term by pointing
to the section header as the button's label_actor.

https://bugzilla.gnome.org/show_bug.cgi?id=745393

js/ui/dateMenu.js

index cd77c41be8c75d07472f50de46f45cddeccf7452..7307d7d8f34881cc196b3bbdadb1f68936430ec4 100644 (file)
@@ -163,6 +163,7 @@ const WorldClocksSection = new Lang.Class({
                                     x_align: Clutter.ActorAlign.START,
                                     text: title });
         layout.attach(header, 0, 0, 2, 1);
+        this.actor.label_actor = header;
 
         for (let i = 0; i < this._locations.length; i++) {
             let l = this._locations[i].location;